﻿@{
	var controller = (ViewContext.RouteData.Values["controller"] as string ?? "Home").ToLower();
	var action = (ViewContext.RouteData.Values["action"] as string ?? "Index").ToLower();
	var page = (controller + ":" + action).ToLower();
}
<div id="header">
	<div class="header-div clearfix">
		<a class="logo-link" href="@Url.Action("Index", "Home")"><img src="@Url.Image("icons/metacortex-org.png")" alt="The MetaCortex Organization - More than just a Cortex" /></a>
		<ul class="navigation-list">
			<li @if(page.Equals("home:index")){ <text>class="current"</text> }><a href="@Url.Action("Index", "Home")">Home</a></li>
			<li @if(controller.Equals("knowledgecenter") || controller.Equals("contentitem")){ <text>class="current"</text> }><a href="@Url.Action("Index", "KnowledgeCenter")">Knowledge Center</a></li>
			<li @if(controller.Equals("calendar")){ <text>class="current"</text> }><a href="@Url.Action("Index", "Calendar")">Calendar</a></li>
		</ul>
		<span class="user-link" href="javascript:void(0);">
			@User.Identity.Name
			<img class="user-image" src="@Url.Image("Icons/user-avatar_30.png")" alt="" />
		</span>
	</div>
</div>